package com.woniuxy.entity.pageinfo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @NAME: TableResult
 * @Description:
 * @author: Mr Tang
 * @Company: 蜗牛学院
 * @DateTime: 2021/5/20 12:09
 * @version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(value = {"handler"})
@ApiModel("分页结果实体类")
public class TableResult<T> implements Serializable {
    //总共有多少条
    @ApiModelProperty("总共多少条")
    private Long total;
    //显示的具体数据
    @ApiModelProperty("显示的具体数据")
    private List<T> rows;
}
